package com.sofn.rest.dao;

import com.sofn.rest.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Authors: sofn
 * Version: 1.0  Created at 2015-11-04 21:42.
 */
public interface UserDao extends JpaRepository<User, Long> {

    List<User> findByNameLike(String name);

    User findByName(String name);
}
